
function g(o) {
	return document.getElementById(o);
}
function HoverLi(n) {
	//如果有N个标签,就将i<=N; 
	for ( var i = 1; i <= 4; i++) {
		g('tb_' + i).className = 'tit';
		g('seacbg' + i).className = 'undis';
	}
	g('seacbg' + n).className = 'dis';
	g('tb_' + n).className = 'tit01TBc';
}
function Hover(n) {
	//如果有N个标签,就将i<=N; 
	for ( var i = 1; i <= 3; i++) {
		g('t_' + i).className = '';
		g('tbc' + i).style.display = 'none';
	}
	g('tbc' + n).style.display = 'block';
	g('t_' + n).className = 'tit01T2Bc';
}

function CheckValue() {
	var username = g("username").value;
	var password = g("password").value;
	var yzm = g("yzm").value;
	if(username == "") {
		alert("对不起,用户名不能为空!");
		g("username").focus();
		return false;
	} else if(password == "") {
		alert("对不起,密码不能为空!");
		g("password").focus();
		return false;
	} else if(yzm == "") {
		alert("对不起,验证码不能为空!");
		g("yzm").focus();
		return false;
	} 
	
	return true;
}

function changeImage() {
	document.getElementById("abc").src = "image.jsp?" + Math.random();
}
